package com.atguigu.gulimall.product.service;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.product.entity.CategoryEntity;
import com.atguigu.gulimall.product.vo.Catalog2Vo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author lihaojie
 * @email lihaojie@gmail.com
 * @date 2023-10-29 22:23:02
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);
    
    
    /**
     * 删除菜单
     */
    boolean removeMenumByIds(List catIds);
    
    /**
     * 获取树形结构
     */
    R getTreeData();
    
    /**
     * 获取分类路径
     */
    Long[] getCatelogPath(Long catelogId);
    
    void updateDetail(CategoryEntity category);
    
    List<CategoryEntity> getLevel1CategoryList();
    
    Map<String, List<Catalog2Vo>> getCatalogJson();
    
    List<CategoryEntity> getLevel1Categorys();
    
}

